from rest_framework import serializers
from home.models import *
class ResourceSer(serializers.ModelSerializer):
    class Meta():
        model=ResourceModel
        fields="__all__"

class RoleSer(serializers.ModelSerializer):
    sourcea=ResourceSer(source="source",many=True)
    class Meta():
        model=RoleModel
        fields="__all__"